//引入基类
import Service from '@/utils/request' 
// 定义一个类型
class UserService extends Service {
	// 根据code获取响应回来的token
	getTokenByCode(code:string){
		return this.get({
			url: `/api/ucenter/webChat/callback?code=${code}`
		})
	}
	
	// 获取用户信息
	getUserInfo(){
		return this.get({url:'/api/ucenter/member/auth/getLoginInfo'})
	}
}
export default new UserService()